package com.wmh.baseservice.admin.pojo.vo.user;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改管理员信息 vo
 *
 * @author 审心
 * 创建时间 2023/2/19 18:50
 */
@Data
@Accessors(chain = true)
public class UpdateAdminReqVo implements Serializable {

    @NotNull(message = "请提交主键")
    private Long id;


    @Length(min = 2, max = 20, message = "用户名称, 长度因在 1-20 位字符之")
    @NotBlank(message = "用户名称, 长度因在 1-20 位字符之间")
    private String name;

    @NotBlank(message = "未提交管理员邮箱")
    @Email(message = "非邮箱格式内容")
    private String email;

    private String remark;

    static final long serialVersionUID = 1L;
}
